package com.lambda.cloud.logger.service;

import static com.lambda.cloud.core.exception.model.ErrorModel.GSON;

import com.lambda.cloud.logger.model.OperationBody;
import lombok.extern.slf4j.Slf4j;

/**
 * @author jpjoo
 */
@Slf4j
public class DefaultOperationServiceImpl implements OperationService {

    /**
     * 保存日志
     *
     * @param operationBody operationBody
     */
    @Override
    public void save(OperationBody operationBody) {
        log.info("save OPERATION LOGGER: {}", GSON.toJson(operationBody));
    }
}
